package com.seven.first.controller;

import com.seven.first.dto.ExampleUserInfoDTO;
import com.seven.first.ms.base.AbstractBaseController;
import com.seven.first.ms.base.BaseService;
import com.seven.first.po.ExampleUserInfoPO;
import com.seven.first.query.ExampleUserInfoQueryDTO;
import com.seven.first.service.ExampleUserInfoService;
import com.seven.first.suite.result.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ExampleUserInfoController
 * @Description TODO
 * @Author seven
 * @Date 2022/5/1618:45
 * @Version 1.0
 **/
@RestController
@RequestMapping("exampleUserInfo")
public class ExampleUserInfoController extends AbstractBaseController<ExampleUserInfoPO, ExampleUserInfoDTO, ExampleUserInfoQueryDTO> {

   @Autowired
   private ExampleUserInfoService exampleUserInfoService;

    @Override
    public BaseService<ExampleUserInfoPO, ExampleUserInfoDTO, ExampleUserInfoQueryDTO> baseService() {
        return exampleUserInfoService;
    }

    @PostMapping("test")
    public ApiResult<String> test(){
        return exampleUserInfoService.test();
    }

}
